package releasemanager.properties;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.dialogs.PropertyPage;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;

import releasemanager.properties.panels.RepositoryProperties;

public class ChangeManPropertyPage extends PropertyPage {
	
	RepositoryProperties rp;
	
	public ChangeManPropertyPage() {
		super();
	}

	@Override
	protected Control createContents(Composite parent) {
		Composite composite = new Composite(parent, SWT.NONE);
		composite.setLayout(new GridLayout(1, false));
		
		TabFolder tabFolder = new TabFolder(composite, SWT.NONE);
		GridData gd_tabFolder = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
		gd_tabFolder.heightHint = 298;
		gd_tabFolder.widthHint = 353;
		tabFolder.setLayoutData(gd_tabFolder);
		
		TabItem tbtmRepository = new TabItem(tabFolder, SWT.NONE);
		tbtmRepository.setText("Repository");
		
		rp = new RepositoryProperties(tabFolder,SWT.NONE);
		rp.fillRepositoriesCombo();
		tbtmRepository.setControl(rp);
		
		TabItem tbtmDatabases = new TabItem(tabFolder, SWT.NONE);
		tbtmDatabases.setText("Databases");
		
		TabItem tbtmServers = new TabItem(tabFolder, SWT.NONE);
		tbtmServers.setText("Servers");
		return composite;
	}
	
}
